home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
076-100
/
scopedisk97
/
wbassign
/
wbassign.doc
< prev
next >
Wrap
Text File
|
1995-03-19
|
5KB
|
124 lines
WBAssign V1.20 11/01/89
by JDGJr (aka) John D. Gerlach, Jr
bix: jgerlachjr 3615 Barcroft View Terr. #104
Falls Church, VA 22041
WBAssign is a small WorkBench program that creates AmigaDos assignments
without having to open a CLI. The assignments are made from entries in
the program-Icon's ToolType list.
This program is envisioned to have two main purposes:
1) The WBAssign icon may be placed in any directory, with assignments
being created when double clicked, and
2) In WorkBench 1.4, and above, the icon may be dropped into WorkBench's
'Startup' directory and the assignments will be made automatically.
Assignments may be made by specifying a complete path (as supported by
the CLI command), or by specifying a path relative to the current
directory. This allows a program and its assigns to be moved easily. In
addition, WBAssign can create assigns specified in the .Info files of
other programs located anywhere in the system.
==================
ToolType Specification:
syntax: Operation= String1 [String2]
Operation : [ WBAABS | WBAREL | WBANXT | WBADOS ]
= : required delimiter
String1 : assign value for WBAABS, WBAREL
filename for WBANXT [not including '.Info']
Dos command string for WBADOS
String2 : path for WBAABS, WBAREL
The first three operations are specific to WBAssign, and the last allows
any AmigaDos command to be executed from the icon. Only ToolType entries
starting with one of these four strings will be interpreted by WBAssign,
allowing WBAssign to inspect .info files of other programs (see
description of WBANXT below).
WBAABS and WBAREL create assigns and need two parameters; the assign, and
its path. WBAABS assumes that the path given is absolute, and is used as
specified. WBAREL prepends the current directory onto the specified
string to create an assign relative to the current location. Note that if
no path is specified for WBAREL an assign is created to the current
directory. If no path is specified for WBAABS, the line is ignored.
WBANXT is a safe means of chaining multiple WBAssigns. At any point in
the ToolType list, a WBANXT may be inserted and the specified file's
.Info file will be traversed.
SPECIFY THE PROGRAM NAME WITHOUT THE '.Info'.
In actuality, the .info file need not be attached to a copy of WBAssign:
It may be associated with any program. This allows one copy of
WBAssign to create assigns for any number of applications, AND the
specific assignments to be kept with their respective programs.
==================
Example:
Assume the following directory structure:
DH0:
DH0:test (contains WBAssign, WBAssign.Info)
DH0:test/sd1
DH0:test/sd2/ssd
DH0:test/sd3
DH1:
DH1:last (contains WBAssign.Info)
DH1:last/sd1
Assume to following ToolTypes:
DH0:test/WBAssign.Info
ToolType: Assignment:
WBAABS=ENV s:env ENV DH0:s/env
WBAREL=Test Test DH0:test
WBAREL=Tsd1 sd1 Tsd1 DH0:test/sd1
WBAREL=Tssd sd2/ssd Tssd DH0:test/sd2/ssd
WBANXT=DH1:last/WBAssign (checks ToolTypes in this .Info file)
DH1:last/WBAssign.Info
WBAREL=LAST LAST DH1:last
WBAREL=lsd1 sd1 lsd1 DH1:last/sd1
==================
Other stuff
Special thanks to Dave Haynie for the 'BindNames' code which illustrated
the magic needed to created AmigaDOS assignments.
Thanks to Dave Milligan for the icon: it surpasses the original by far.
==================
The rest of it ...
WBAssign may be distributed [for non-comercial purposes only] by
anyone and everyone AS LONG AS the following conditions are met:
1. The executable and documentation remain together and unchanged;
2. The program, and any use thereof, be proclaimed to be independent
and un-associated with any political, religious, or social assoc-
iation or organization unless its use is detrimental to the goals
and intent of that body in general. In clarification, this may be
used by any computer user for any purpose (the restriction will
probably be met anyway).
I have noticed that writing programs for programmers does not garner
many rewards: little recognition, and no money. Thus, this one is
primarily intended for users (close to all of us). WBAssign is not
a large program, but hopefully quite useful. If you find it so, please
read the following sentence:
Any Salutations, Congradulations and/or Contributions may be forwarded
to me at the above address.